WooCommerce\Square\Gateway\Cash_App_Pay_Gateway D

Total Complexity 158
Dependencies 18
Dependents 2
Total lines 1,229
Lines of code 586
Logical lines of code 304
Comment lines 447
Methods 41
Properties 3

Methods 41

Method Rating Maintainability Complexity Lines of code
build_payment_request_line_items()
A
41 14 54
add_admin_notices()
A
48 12 33
process_payment()
A
44 9 43
build_payment_request()
A
46 9 37
get_order()
A
48 9 31
get_payment_request()
A
49 9 29
get_order_for_refund()
A
49 9 28
do_payment_method_transaction()
A
49 8 28
do_transaction()
S
51 6 27
enqueue_gateway_assets()
S
58 6 14
get_partial_cash_app_amount()
S
53 5 22
render_js()
S
50 4 26
is_configured()
S
70 5 5
ajax_set_continuation_session()
S
58 4 14
add_payment_gateway_transaction_data()
S
64 4 10
validate_fields()
S
60 3 13
ajax_get_payment_request()
S
60 3 13
get_order_with_unique_transaction_ref()
S
61 3 12
get_payment_method_image_url()
S
66 3 7
log_js_data()
S
64 3 8
is_available()
S
78 3 3
__construct()
S
51 1 28
get_cart_totals()
S
61 2 12
get_transaction_url_format()
S
79 2 3
is_cash_app_pay_continuation()
S
78 2 3
enqueue_scripts()
S
72 2 6
get_guest_customer_id()
S
69 2 7
get_application_id()
S
68 2 7
get_api()
S
66 2 8
payment_fields()
S
64 1 12
mark_order_as_refunded()
S
75 1 4
get_customer_id()
S
75 1 4
init_payment_tokens_handler()
S
91 1 2
get_method_form_fields()
S
82 1 3
get_environment()
S
81 1 3
get_button_styles()
S
64 1 9
init_form_fields()
S
81 1 3
get_order_for_capture()
S
70 1 6
get_default_description()
S
79 1 3
get_default_title()
S
79 1 3
get_gateway_js_handle()
S
80 1 3